<?php
include ('../pages/check_login.include.php');
if ($logged) {
    echo json_encode(array('logged_in' => ($logged) ? 1 : 0, 'user' => (isset($_SESSION['user'])) ? $_SESSION['user'] : 'pinco.pallo'));
} else {
    echo json_encode(array('logged_in' => ($logged) ? 1 : 0));
}
?>